﻿<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>商品详情</title>
  <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,initial-scale=1">
  <link href="/shop/templates/yeshou/css/swiper-3.2.7.min.css" rel="stylesheet" />
  <style type="text/css">
    html {
      font-family: 'Microsoft YaHei';
      -ms-text-size-adjust: 100%;
      -webkit-text-size-adjust: 100%;
    }

    * {
      margin: 0;
      padding: 0;
    }

    ol, ul {
      list-style: none;
    }

    .header {
      height: 45px;
      background-color: rgba(255,68,0,1);
      padding: 0 15px;
      line-height: 45px;
    }

      .header .bar {
        text-align: center;
        font-size: 19px;
        color: #fff;
        position: relative;
        height: 45px;
      }

        .header .bar .callback {
          display: block;
          position: absolute;
          height: 12px;
          width: 12px;
          -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
          border: 2px solid #fff;
          top: 12px;
          border-right-color: #ff4400;
          border-top-color: #ff4400;
        }

    .main {
      width: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
    }

    .goods-img {
      height: 320px;
      width: 100%;
    }

      .goods-img img {
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: -160px;
        height: 320px;
        width: 320px;
      }

    .goods-info {
      border-top: 1px solid #DFDFDF;
      padding: 10px 10px;
    }

      .goods-info .name {
        overflow: hidden;
        max-height: 40px;
        font-size: 15px;
        padding-bottom: 5px;
        font-weight: 700;
      }

      .goods-info .desc {
        color: #ff4400;
        font-size: 12px;
      }

    .notice {
      padding: 10px;
      overflow: hidden;
    }

      .notice h3 {
        border-left: 5px solid #dfdfdf;
        padding-left: 5px;
        height: 30px;
        line-height: 30px;
        font-weight: normal;
      }

      .notice p {
        text-indent: 20px;
        font-size: 14px;
      }

    .bottom {
      position: fixed;
      border-top: 1px solid #dfdfdf;
      height: 40px;
      padding: 10px;
      bottom: 0;
      left: 0;
      right: 0;
    }

      .bottom .price {
        position: absolute;
        left: 10px;
        height: 40px;
        line-height: 40px;
        color: #ff4400;
      }

      .bottom .submit {
        position: absolute;
        width: 150px;
        height: 40px;
        line-height: 40px;
        right: 10px;
        display: block;
        border-radius: 4px;
        background-clip: padding-box;
        background-color: #ff4300;
        color: #fff;
        text-align: center;
      }
  </style>
</head>
<body>
  <div class="header">
    <div class="bar">
      <a class="callback" href="/shop/reward_index.aspx?wid={$wid}"></a>商品详情
    </div>
  </div>
  <div class="main">
    <div class="goods-img">
      <div class="swiper-container" style="height: 320px;">
        <div class="swiper-wrapper">
          <vt:foreach from="$model.albums" item="albums">
            <div class="swiper-slide">
              <img src="{$albums.original_path}" alt="">
            </div>
          </vt:foreach>
        </div>
        <!-- 分页器 -->
        <div class="swiper-pagination"></div>
      </div>
    </div>
    <div class="goods-info">
      <div class="name">{$model.productName}</div>
      <div class="desc">{$model.shortDesc}</div>
    </div>
    <div class="notice">
      <h3>兑换须知</h3>
      <p><div class="desc">{$model.shortDesc}</div></p>
    </div>
    <div class="bottom">
      <div class="price">
        <span>{$model.salePrice}</span>积分
      </div>
      <a class="submit">立即兑换</a>
    </div>
  </div>
  <script src="/shop/templates/yeshou/js/swiper-3.2.7.min.js"></script>
  <script type="text/javascript">
    var mySwiper = new Swiper('.swiper-container', {
      loop: true,
      // 分页器
      pagination: '.swiper-pagination'
    })
  </script>
</body>
</html>